#include "Topology.h"


Topology::Topology(Graphics& gfx, Primitive type)
	:
	type(type)
{}

void Topology::Bind(Graphics& gfx)
{
	(GetContext(gfx)->IASetPrimitiveTopology(static_cast<D3D11_PRIMITIVE_TOPOLOGY>(type)));
}
std::shared_ptr<Topology> Topology::Create(Graphics& gfx, Primitive type)
{
	return std::make_shared<Topology>(gfx, type);
}
